package main

import (
	"fmt"
)

var c chan string

func Pingping() {
	i := 0
	for {

		fmt.Println("Pingping", <-c)
		c <- fmt.Sprintf("From Pingping:hi,#%d", i)
		i += 1
	}
}

func main() {
	c = make(chan string)
	go Pingping()
	for i := 0; i < 100; i++ {
		c <- fmt.Sprintf("From main:hi,#%d", i)
		fmt.Println("main", <-c)
	}
}
